package com.jiyun.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiyun.om.entity.PickupOrder;
import com.jiyun.mapper.PickupOrderMapper;
import com.jiyun.result.Result;
import com.jiyun.service.IPickupOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 提货单表 服务实现类
 * </p>
 *
 * @author zhx
 * @since 2025-02-12
 */
@Service
public class PickupOrderServiceImpl extends ServiceImpl<PickupOrderMapper, PickupOrder> implements IPickupOrderService {
@Autowired
private PickupOrderMapper pickupOrderMapper;
    @Override
    public Page<PickupOrder> getAll(Integer pageNum, Integer pageSize, PickupOrder pickupOrder) {
        Page<PickupOrder> page = new Page<>(pageNum, pageSize);
        return pickupOrderMapper.getAll(page,pickupOrder);
    }

    @Override
    public List<PickupOrder> findAll() {

        return pickupOrderMapper.findAll();
    }


}
